/*
 * Canvas Game Engine - Angles
 *
 * version: 0.1
 *
 * author: Fabio Rotondo <fabio@rotondo.it>
 *
 */

function CGEAngles ()
{
	this.angles = [];
	
	var t;

	for ( t = 0; t < 361; t ++ )
		this.angles.push ( t * Math.PI / 180 );
}

CGEAngles.prototype.get = function ( degrees )
{
	return this.angles [ degrees % 360 ];
};


CGE.angles = new CGEAngles ();
